<template>
  <div class="box">
    <img alt="Vue logo" src="../../assets/images/logo.png" />
    <a-button type="primary" @click="handelLogin">跳转登陆</a-button>
    <a-button type="primary" @click="handelHome">跳转首页</a-button>
  </div>
</template>

<script setup>
import { useMenuStore } from '@/store/modules/menu'
import { useRouter } from 'vue-router'

const menuStore = useMenuStore()
/**
 * 更新菜单
 */
menuStore.updateMenu(null, true)

const { push } = useRouter()
const handelLogin = () => {
  push('/login')
}
const handelHome = () => {
  push('/dashboard')
}
</script>

<style lang="less" scoped>
.box {
  text-align: center;
  padding-top: 30px;
}
</style>
